package 字符串;

import java.util.Scanner;

public class 字符串压缩 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        String str2 = "";
        int[] a = new int[150];
        for (int i = 0; i < str.length(); i++) {
            a[(int) str.charAt(i)] = a[(int) str.charAt(i)] + 1;
            if (String.valueOf(str.charAt(i)).equals(" ")){
                str2 = str2 + " ";
            }else if (a[(int) str.charAt(i)]==1||a[(int) str.charAt(i)]==3||a[(int) str.charAt(i)]==6){
                str2 = str2 + str.charAt(i);
            }
            else {
                continue;
            }
        }
        System.out.println(str2);

    }
}
